import React from 'react'

class Brother extends React.Component {
    constructor(props) {
        super(props); 
        this.state = {}; 
    }
    render() {
        return ( 
            <div>
                <button onClick={()=> {
                    this.props.sendMessage('子传父')
                }}>点击子传父</button>
            </div>
        )
    }
}

export default Brother